package com.exam.entities;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author : wl
 * @program : kaojinbang
 * @date : 2021/3/10 17:53
 */
@ApiModel("api通用返回数据")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ResultVo<T>
{
    @ApiModelProperty("状态码，0表示成功，非0表示出错")
    private Integer code;
    @ApiModelProperty("返回信息")
    private String msg;
    @ApiModelProperty("返回的数据")
    private T data;
    @ApiModelProperty("返回的数据笔数")
    private Long count;
}